<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>My Virtual Library</title>
<link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" />

</head>

<body>

<div id="wrapper">
<h1><em>MyVirtual</em> Library</h1>
<jsp:include page="header.jsp" />
<div id="topcon">
<div id="topcon-inner">
<h2>Welcome to MyVirtual Library</h2>
<p><jsp:include page="description.jsp" /></p>

</div>
</div>
  <div id="content">
      <div id="body">
      <s:actionerror/>
      <s:actionmessage/>
       <!-- add object form -->
        <s:form title="Add Item to your library" action="AddItem.action" method="POST" >
           
                 
                <s:textfield name="item.title" label="Title"/>
                <s:radio label="Type" name="item.type" list="{'Book','CD','Dvd'}" />
                <s:textfield name="item.location" label="Location"/>
                <s:radio label="Visibility" name="item.visible" list="{'public','private','friends'}" />
                <s:submit value="Add Book" align="center"/>
                <br/><br/>
        </s:form>
        
        
            
        <div class="box" id="news">
        
          <div class="box-t"><div class="box-r"><div class="box-b"><div class="box-l">
          <div class="box-tr"><div class="box-br"><div class="box-bl"><div class="box-tl">
            
            <h2>ADMIN ACTIONS</h2>
               <s:iterator value="recentLibAdds">
                 <h3><s:property  value="timeAdded"/></h3>
                 <p> <s:property  value="type"/>   <b><s:property  value="title"/> </b> was added </p> 
                 <div class="hr-yellow"> </div>
               </s:iterator>
             	
               <table border="0">
               	<tr>
               		<td>
               			<a href="displayItemsAdmin.action">View/Edit All Master Records</a>
               		</td>
               	</tr>
               	<tr>
               		<td>
               			<a href="displayUsersAdmin.action">View/Edit All User Accounts</a>
               		</td>
               	</tr>
               </table>

          </div></div></div></div>
          </div></div></div></div>
        </div>
        <div class="box" id="hits">
          <div class="box-t"><div class="box-r"><div class="box-b"><div class="box-l">
          <div class="box-tr"><div class="box-br"><div class="box-bl"><div class="box-tl">

            <h2>RECENTLY LOANED</h2>

               <s:iterator value="recentLoans">
                 <h3><s:property  value="lastChanged"/></h3>
                 <p> <s:property  value="type"/>   <b><s:property  value="title"/> </b> was loaned </p> 
                 <div class="hr-yellow"> </div>
               </s:iterator>
          </div></div></div></div>
          </div></div></div></div>
        </div>
        <div class="box" id="new">
          <div class="box-t"><div class="box-r"><div class="box-b"><div class="box-l">
          <div class="box-tr"><div class="box-br"><div class="box-bl"><div class="box-tl">

            <h2>NEW RELEASES</h2>
            
            <h3>eestas sed</h3>
            <img src="images/pic_3.jpg" width="66" height="52" alt="Pic 3" class="right" />
            <p>porta vel, nulla. Maecenas condi- mentum sollicitu</p>
            
            <h3>Maecenas</h3>
            <img src="images/pic_4.jpg" width="66" height="52" alt="Pic 4" class="right" />
            <p>ndimentum sollicitudin quam. Sed convallis</p>
            
            <h3>sollicitudin</h3>
            <img src="images/pic_5.jpg" width="66" height="52" alt="Pic 5" class="right" />
            <p>quam. Sed nvallis lacus .vallislacus arcu.vallis</p>
            
          </div></div></div></div>
          </div></div></div></div>
        </div>
        <div class="clear"> </div>
      </div>
<jsp:include page="footer.html" />
</div></div>
</body>
</html>
